package com.umbrella.worker.util;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

public class Constant {

	public static final String SMS_MOBILE_VAIDATE_KEY = "sms_mobile_vaidate";
	
	public static final String SMS_ORDER_ASSIGNED_KEY = "sms_order_assigned";
	
	public static final String SMS_ORDER2_ASSIGNED_KEY = "sms_order2_assigned";
	
	public static final String SMS_STAFF_ASSIGNED_KEY = "sms_staff_assigned";
	
	
	public static final String[] PAY_CHANNELS = {"微信支付", ""};
	
	public static final Map<Integer, BigDecimal[]> FEE_MAP = new HashMap<Integer, BigDecimal[]>();
	
	public static final Map<Integer, String> SERVICE_MAP = new HashMap<Integer, String>();
	//护工白天价格 
	public static final BigDecimal DAY_TIME = new BigDecimal(80.00);
	//护工夜晚价格 
	public static final BigDecimal NIGHT_TIME = new BigDecimal(80.00);
	//护工全天价格
	public static final BigDecimal DAY = new BigDecimal(150.00);
	
	static {
		
		//保姆 
		FEE_MAP.put(1, new BigDecimal[]{new BigDecimal(2000.00), new BigDecimal(3000.00), new BigDecimal(4000.00), new BigDecimal(5000.00), new BigDecimal(6000.00)});
		//老人看护
		FEE_MAP.put(2, new BigDecimal[]{new BigDecimal(3000.00), new BigDecimal(4000.00), new BigDecimal(5000.00)});
		//育婴师 
		FEE_MAP.put(3, new BigDecimal[]{new BigDecimal(4000.00), new BigDecimal(5000.00), new BigDecimal(6000.00), new BigDecimal(7000.00)});
		//月嫂
		FEE_MAP.put(3, new BigDecimal[]{new BigDecimal(6000.00), new BigDecimal(7000.00), new BigDecimal(8000.00), new BigDecimal(9000.00), new BigDecimal(10000.00)});
	}
	
	static {
		
		//保姆 
		SERVICE_MAP.put(6, new String ("保姆"));
		//老人看护
		SERVICE_MAP.put(7, new String ("老人看护"));
		//育婴师 
		SERVICE_MAP.put(8, new String ("育婴师 "));
		//月嫂
		SERVICE_MAP.put(9, new String ("月嫂"));
	}
	
	//初始化
	public static String APP_ID = "wx473548bdfc52a456";//微信开发平台应用id
	public static String APP_SECRET = "3d11144fe65384ae113ff8ee17a58b22";//应用对应的凭证
	//应用对应的密钥
	public static String APP_KEY = "EDJCHADF32343adjkecijqewru98u081";
	public static String MCH_ID = "1415622002";//财付通商户号
	public static String NOTIFY_URL = "http://wx.heiguanjia.cn/pay/payRes.html";
	public static String WEIXIN_OAUTH2_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid={APPID}&secret={SECRET}&code={CODE}&grant_type=authorization_code";
}
